package net.sxnic.item.ajax;

import java.util.LinkedHashMap;
import java.util.Map;

import net.sxnic.item.ItemActionSupport;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SelRegion extends ItemActionSupport {

	private static final long serialVersionUID = 1L;
	private static Logger logger = LoggerFactory.getLogger(SelRegion.class);

	public String execute() throws Exception {
		String key = request.getParameter("key");
//		Map<String,Map<String,String>> map = new LinkedHashMap<String,Map<String,String>>();
//		Map<String,String> mapProvice = new LinkedHashMap<String,String>();
//		mapProvice.put("140000", "山西省");
//		if("0".equals(key))
//			map.put("0", mapProvice);
//
//		Map<String,String> mapCity = new LinkedHashMap<String,String>();
//		mapCity.put("140100", "太原市");
//		if("0,140000".equals(key))
//			map.put("0,140000", mapCity);
//
//		Map<String,String> mapCountry = new LinkedHashMap<String,String>();
//		mapCountry.put("140105", "小店区");
//		if("0,140000,140100".equals(key))
//			map.put("0,140000,140100", mapCountry);
		
		Map<String,String> map = new LinkedHashMap<String,String>();
		
		if("0".equals(key))
		{
			map.put("140000", "山西省");
		}
		
		if("0,140000".equals(key))
			map.put("140100", "太原市");

		if("0,140000,140100".equals(key))
			map.put("140105", "小店区");

//		return writeJson(map);
		return "";
	}

}
